﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;


namespace NL.ADA.NotificationService
{
    public class ImplementationClient
    {
        private OperationContext _context;
        public ImplementationClient()
        {
        }

        public INotificationServiceCallBack CallBackChannel
        {
            get
            {
                if (_context != null)
                {     //ask for a client object:
                    return _context.GetCallbackChannel<INotificationServiceCallBack>();
                }
                else
                {
                    return null;
                }
            }

        }

        public OperationContext Context
        {
            get
            {
                return _context;
            }
            set
            {
                _context = value;
            }
        }

    }
}
